
<!-- m_navbar-->
{{template "m_navbar.html" .}}


<!-- body start-->
<div class="panel panel-default">
    <!-- Default panel contents -->
    <form action="/sfadduf?active={{.active}}&&uid={{.uid}}" method="post">
        <div class="alert alert-light" role="alert">
            <p>分享的用户: {{.uname}}</p>
            <p>文件列表: {{.count}}</p>
            <input class="btn btn-outline-primary" type="submit" value="分享">
        </div>
        <!-- Table -->
        <table class="table">
            <tr>
                <th>编号</th>
                <th>文件名称</th>
                <th>时间</th>
                <th>操作</th>
            </tr>
            <!--.users  读取分离文件列表-->
            {{range $index, $elem := .files}}
                {{if lt 2 $elem.ID}}
                    <tr>
                        <th>#{{$index}}</th>{{/*编号*/}}
                        <th>{{$elem.FFname}}</th>{{/*名称*/}}
                        <th>{{$elem.UpdateAt}}</th>{{/*时间*/}}
                        <th>
                            <label class="btn btn-outline-dark">
                                <input  type="checkbox" name="fids" value={{$elem.ID}}>
                            </label>
                        </th>
                    </tr>
                {{end}}
            {{end}}
        </table>
    </form>
</div>

<!-- body end-->

<!-- m_footer-->
{{template "m_footer.html" .}}